<%@page pageEncoding="UTF-8"%>
<%@ include file="../WEB-INF/jspf/cabecalho.jspf" %>
<%@ include file="../WEB-INF/jspf/acesso.jspf" %>
<%@ include file="../WEB-INF/jspf/setMeta.jspf" %>

<sql:query var='rsetFornecedor' dataSource='${con}'>    
    SELECT * FROM Fornecedor     
    WHERE idFornecedor = '${param.chv1}'
</sql:query>

<form name="form1" method="post" action="">
  <fieldset>
  <legend><font color="#0000FF"><strong>Dados de Fornecedor</strong></font></legend>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <div align="center"> 
    
    <table >
      <tr> 
        <td><strong>C&oacute;digo:</strong></td>
        <td colspan="3"><input name="idFornecedor" type="text" id="idFornecedor" value="${param.chv1}" size="10" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Raz&atilde;o Social:</strong></td>
        <td colspan="3"><input name="nome" type="text" id="nome" value="${rsetFornecedor.rowsByIndex[0][1]}" size="50" readonly=""/></td>
      </tr>
      <tr> 
        <td height="23"><strong>CNPJ:</strong></td>
        <td colspan="3"><input name="cnpj" type="text" id="cnpj" value="${rsetFornecedor.rowsByIndex[0][2]}" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Telefone:</strong></td>
        <td colspan="3"><input name="telefone" type="text" id="telefone" value="${rsetFornecedor.rowsByIndex[0][3]}" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Fone-Fax:</strong></td>
        <td colspan="3"><input name="foneFax" type="text" id="foneFax" value="${rsetFornecedor.rowsByIndex[0][4]}" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Email:</strong></td>
        <td colspan="3"><input name="email" type="text" id="email" value="${rsetFornecedor.rowsByIndex[0][5]}" size="30" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Contato:</strong></td>
        <td colspan="3"><input name="contato" type="text" id="contato" value="${rsetFornecedor.rowsByIndex[0][6]}" size="30" readonly=""/></td>
      </tr>
      <tr> 
        <td><strong>Status:</strong></td>
        <td colspan="3"><input name="statusFornecedor" type="text" id="statusFornecedor" value="${rsetFornecedor.rowsByIndex[0][7]}" readonly="" /></td>
      </tr>
    </table>
  </div>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  </fieldset>
</form>

</body>
</html>
